package com.ruoyi.wp.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 患者对象 doctor_patient
 *
 * @author ruoyi
 * @date 2022-11-13
 */
public class IDoctorPatient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 患者id */
    private Long patientId;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String patientName;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String patientCard;

    /** 性别(0是男,1是女，2未知) */
    @Excel(name = "性别(0是男,1是女，2未知)")
    private String patientSex;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long patientAge;

    /** 患者的手机号 */
    @Excel(name = "患者的手机号")
    private String patientPhone;

    /** 患者的生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "患者的生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date patientBirth;

    /** (0未完善,1完善) */
    @Excel(name = "(0未完善,1完善)")
    private Long patientStatus;

    /** 患者地址信息 */
    @Excel(name = "患者地址信息")
    private String patientAddress;

    /** 过敏史 */
    @Excel(name = "过敏史")
    private String patientHistory;

    public void setPatientId(Long patientId)
    {
        this.patientId = patientId;
    }

    public Long getPatientId()
    {
        return patientId;
    }
    public void setPatientName(String patientName)
    {
        this.patientName = patientName;
    }

    public String getPatientName()
    {
        return patientName;
    }
    public void setPatientCard(String patientCard)
    {
        this.patientCard = patientCard;
    }

    public String getPatientCard()
    {
        return patientCard;
    }
    public void setPatientSex(String patientSex)
    {
        this.patientSex = patientSex;
    }

    public String getPatientSex()
    {
        return patientSex;
    }
    public void setPatientAge(Long patientAge)
    {
        this.patientAge = patientAge;
    }

    public Long getPatientAge()
    {
        return patientAge;
    }
    public void setPatientPhone(String patientPhone)
    {
        this.patientPhone = patientPhone;
    }

    public String getPatientPhone()
    {
        return patientPhone;
    }
    public void setPatientBirth(Date patientBirth)
    {
        this.patientBirth = patientBirth;
    }

    public Date getPatientBirth()
    {
        return patientBirth;
    }
    public void setPatientStatus(Long patientStatus)
    {
        this.patientStatus = patientStatus;
    }

    public Long getPatientStatus()
    {
        return patientStatus;
    }
    public void setPatientAddress(String patientAddress)
    {
        this.patientAddress = patientAddress;
    }

    public String getPatientAddress()
    {
        return patientAddress;
    }
    public void setPatientHistory(String patientHistory)
    {
        this.patientHistory = patientHistory;
    }

    public String getPatientHistory()
    {
        return patientHistory;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("patientId", getPatientId())
                .append("patientName", getPatientName())
                .append("patientCard", getPatientCard())
                .append("patientSex", getPatientSex())
                .append("patientAge", getPatientAge())
                .append("patientPhone", getPatientPhone())
                .append("patientBirth", getPatientBirth())
                .append("patientStatus", getPatientStatus())
                .append("patientAddress", getPatientAddress())
                .append("patientHistory", getPatientHistory())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
